package 多线程;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;
import java.net.URL;

public class img {
    static String OUTIMG(String url, String name) {

        name = name+".jpg";

        File file = new File("F:\\桌面\\壁纸",name);
        try {
            FileUtils.copyURLToFile(new URL(url), file);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return file.getPath();
    }
}
